package com.ng.common.properties;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件中的值
 * - 统一管理、便于修改
 *
 * @author Ng
 * @date 2024/03/08
 */
@Data
@Component
//@ConfigurationProperties(prefix = "com.example.jwt")
public class JwtProperties {

    /**
     * 用户生成 JWT 令牌相关配置
     */
    private String userSecretKey = "$Ng123";
    private long userExpireDate  = 86400000;
    private String userTokenName = "token";
    // key: Authorization
    // value: Bearer xxxxxx
    private String userTokenName2 = "Authorization";
}
